#import "MNBaseRsp.h"
@implementation MNBaseRsp
- (instancetype)init
{
    self = [super init];
    if (self) {
        self.code = -1;
        self.status = -1;
    }
    return self;
}

- (NSString *)failureDescription {
    return _error.localizedDescription;
}

- (NSString *)message {
    return _message?_message:self.failureDescription;
}

- (BOOL)isSuccess {
    return self.status == 0;
}

- (BOOL)isCancel {
    return self.status == -999;
}

- (NSInteger)code {
    return self.status;
}

@end
